Create Ledger Transaction
curl --request POST \
--url https://api.multex.tech/guild/ledger \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"robloxId": "<string>",
"name": "<string>",
"quantity": 2,
"amount": 123,
"source": "<string>",
"deposit": true,
"withdrawal": true
}
'import requests
url = "https://api.multex.tech/guild/ledger"
payload = {
"robloxId": "<string>",
"name": "<string>",
"quantity": 2,
"amount": 123,
"source": "<string>",
"deposit": True,
"withdrawal": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
robloxId: '<string>',
name: '<string>',
quantity: 2,
amount: 123,
source: '<string>',
deposit: true,
withdrawal: true
})
};
fetch('https://api.multex.tech/guild/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.multex.tech/guild/ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'robloxId' => '<string>',
'name' => '<string>',
'quantity' => 2,
'amount' => 123,
'source' => '<string>',
'deposit' => true,
'withdrawal' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.multex.tech/guild/ledger"
payload := strings.NewReader("{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.multex.tech/guild/ledger")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.multex.tech/guild/ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction Posted (deposit)",
"type": "deposit"
}{
"success": false,
"message": "Bad request - missing required fields"
}{
"success": false,
"message": "Unauthorized - invalid API key"
}{
"success": false,
"message": "Explicit deposit flag conflicts with negative amount (potential exploit detected)"
}Ledger
Post transaction
Creates a new financial transaction record in the guild ledger. Positive amounts are deposits (money goes up), negative amounts are withdrawals (money goes down). Optional explicit type validation helps catch exploiters.
POST
/
guild
/
ledger
Create Ledger Transaction
curl --request POST \
--url https://api.multex.tech/guild/ledger \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"robloxId": "<string>",
"name": "<string>",
"quantity": 2,
"amount": 123,
"source": "<string>",
"deposit": true,
"withdrawal": true
}
'import requests
url = "https://api.multex.tech/guild/ledger"
payload = {
"robloxId": "<string>",
"name": "<string>",
"quantity": 2,
"amount": 123,
"source": "<string>",
"deposit": True,
"withdrawal": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
robloxId: '<string>',
name: '<string>',
quantity: 2,
amount: 123,
source: '<string>',
deposit: true,
withdrawal: true
})
};
fetch('https://api.multex.tech/guild/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.multex.tech/guild/ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'robloxId' => '<string>',
'name' => '<string>',
'quantity' => 2,
'amount' => 123,
'source' => '<string>',
'deposit' => true,
'withdrawal' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.multex.tech/guild/ledger"
payload := strings.NewReader("{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.multex.tech/guild/ledger")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.multex.tech/guild/ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"robloxId\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 2,\n \"amount\": 123,\n \"source\": \"<string>\",\n \"deposit\": true,\n \"withdrawal\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction Posted (deposit)",
"type": "deposit"
}{
"success": false,
"message": "Bad request - missing required fields"
}{
"success": false,
"message": "Unauthorized - invalid API key"
}{
"success": false,
"message": "Explicit deposit flag conflicts with negative amount (potential exploit detected)"
}Required Scopes
guild:write
Rate Limit
10 requests per secondAuthorizations
API key for accessing protected guild endpoints
Body
application/json
Roblox user ID of the player
Name of the transaction (item name, etc.)
Quantity of items in the transaction
Required range:
x >= 1Amount per item (positive = deposit, negative = withdrawal)
Source of the transaction
Optional: explicitly mark as deposit for validation
Optional: explicitly mark as withdrawal for validation
⌘I
